1 //==============================================================================
2 // file : StyleReader.java
3 // project: Java Common Utility
4 //
5 // last change: date: $Date: 2003/09/10 09:22:14 $
6 // by: $Author: bitiboy $
7 // revision: $Revision: 1.1 $
8 //------------------------------------------------------------------------------
9 // copyright: GNU GPL Software License (see class documentation)
10 //==============================================================================
11 package com.justhis.util;
12
13
14 /*
15 * $Id: StyleReader.java,v 1.1 2003/09/10 09:22:14 bitiboy Exp $
16 *
17 * Copyright 2003 Acai Software All Rights Reserved.
18 *
19 * This file StyleReader.java is part of the Java Common Utility.
20
21 * The Java Common Utility is free software; you can redistribute it and/or modify
22 * it under the terms of the GNU General Public License as published by
23 * the Free Software Foundation; either version 2 of the License, or
24 * (at your option) any later version.
25
26 * Java Common Utility is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 * GNU General Public License for more details.
30
31 * You should have received a copy of the GNU General Public License
32 * along with the Java Common Utility; if not, write to the Free Software
33 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34
35 * http://www.justhis.com
36 * CONTACT: email = superaxis@sohu.com webmaster@justhis.com
37 */
38 import java.util.Enumeration;
39
40
41 /***
42 * TODO
43 *
44 * @author <a href="http://blog.ejb.cn">acai</a>
45 * @version $Revision: 1.1 $
46 */
47 public class StyleReader {
48 //~ Static fields/initializers ---------------------------------------------
49
50 /*** TODO */
51 private static PropertiesReader pr = null;
52
53 static {
54 try {
55 init();
56 } catch (Exception e) {
57 e.printStackTrace();
58 }
59 }
60
61 //~ Methods ----------------------------------------------------------------
62
63 /***
64 * TODO
65 *
66 * @return TODO
67 *
68 * @throws Exception TODO
69 */
70 public static Enumeration getKeys() throws Exception {
71 if (pr == null) {
72 init();
73 }
74
75 return pr.getKeys();
76 }
77
78 /***
79 * TODO
80 *
81 * @param propertyName TODO
82 *
83 * @return TODO
84 *
85 * @throws Exception TODO
86 */
87 public static String getProperty(String propertyName)
88 throws Exception {
89 if (pr == null) {
90 init();
91 }
92
93 return pr.getProperty(propertyName);
94 }
95
96 /***
97 * TODO
98 *
99 * @throws Exception TODO
100 */
101 private static void init() throws Exception {
102 pr = new PropertiesReader("/style");
103 }
104 }
105
106
107 /*
108 * $Log: StyleReader.java,v $
109 * Revision 1.1 2003/09/10 09:22:14 bitiboy
110 * *** empty log message ***
111 *
112 *
113 */
This page was automatically generated by Maven